package edu.npu.cv.service;

import edu.npu.cv.entity.ArticleDO;
import edu.npu.cv.entity.PageDO;
import edu.npu.cv.entity.ResultDO;
import edu.npu.cv.utils.PageQueryUtil;
import edu.npu.cv.vo.ArticleVO;

public interface ArticleService {

    /**
     * 分页查询文章
     *
     * @param pageQueryUtil
     * @return
     */
    public ResultDO<PageDO> findAll(PageQueryUtil pageQueryUtil);

    public ResultDO<Void> deleteByIds(Long[] ids);

    public int getArticleCount();

    public ArticleDO getArticleDOById(long id);

    public ResultDO<Void> saveArticle(ArticleVO articleVO);

    public ResultDO<Void> updateArticle(ArticleVO articleVO);

}
